﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Admin
{
    public partial class Tester : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            GridView dv = new GridView();
            dv.DataSource = GetSale();
            dv.DataBind();
            this.form1.Controls.Add(dv);
        }

        public DataTable GetSale()
        {
            string sqlText = "SELECT top 10 * FROM getemailtable order by autoid desc";

            DataTable dt = BaseData.DataConfig.QueryRecords(BaseData.BusinessType.DBemailSystem, sqlText);
            return dt;
        }

    }
}